package com.mysoft.gfyx.common.rpc.mpapi.impl;

import feign.RequestInterceptor;
import feign.RequestTemplate;

public class MpapiRequestInterceptorImpl implements RequestInterceptor {

    private String authToken;

    public MpapiRequestInterceptorImpl(String token) {
        this.authToken = token;
    }

    @Override
    public void apply(RequestTemplate requestTemplate) {
        requestTemplate.header("auth_token", this.authToken);
    }
}
